<?php
if (realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME']))
{
    include_once '../../configs/config.ini.php';
}

class Main_Index extends Zero_AppController
{
    public function index()
    {
        //$GameSetting = new Base_GameSetting();
        //$game_setting_rows = $GameSetting->getGameSetting();

        //$this->dataRows['body'] = $game_setting_rows;

        //Zero_Db::close();

        global $app_starttime;
        $mtime =  explode(' ',  microtime());
        $app_endtime = $mtime[ 1] + $mtime[0 ]; 

        $exec_time = $app_endtime - $app_starttime;

        include $this->view->getView();
    }

    public function json()
    {
        $this->data->dataRows['body'] = array('我是'=>'我是一只小小鸟，', 1, 2, 3, 4);
    }

    public function hello()
    {
         echo '<br />我是一只小小鸟，我是一只小小鸟，我是一只小小鸟，我是一只小小鸟，我是一只小小鸟，我是一只小小鸟，<br />';
    }
}

if (realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME']))
{
    $Obj = new Main_Index();
    $Obj->run();
}

?>